﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Private/Privada.master" AutoEventWireup="true" CodeBehind="EditEmpresa.aspx.cs" Inherits="HRP.Private.Empresa.EditEmpresa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PrivadaMainContent" runat="server">

    <div class="box-info full-content">

        <h2><strong>
            <asp:Label ID="companyNameLB" runat="server"></asp:Label></strong></h2>
        <div class="data-table-toolbar">
            <div class="row">
                <div class="col-sm-4">

                    <img src="<%=logo %>" class="img-circle" style="max-width: 200px;" alt="Avatar">
                    <div class="user-profile-content">
                        <h5>Escolha um logotipo</h5>
                        <asp:FileUpload ID="FileUpload1" class="btn btn-primary btn-sm" runat="server" />
                        <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click" class="btn btn-primary btn-sm">Carregar</asp:LinkButton>
                    </div>
                    <br />
                    <div class="row">
                        <div class="col-sm-12">
                            <dl>
                                <dt>Data de Registo</dt>
                                <dd>
                                    <asp:Label ID="dataLB" runat="server" Text=""></asp:Label></dd>
                                <dt>Registada por</dt>
                                <dd>
                                    <asp:Label ID="criadorLB" runat="server" Text=""></asp:Label></dd>
                                <dt>Data da Última Modificação</dt>
                                <dd>
                                    <asp:Label ID="dataModificacaoLB" runat="server" Text=""></asp:Label></dd>
                                <dt>Modificada por</dt>
                                <dd>
                                    <asp:Label ID="modificadorLB" runat="server" Text=""></asp:Label></dd>
                            </dl>
                        </div>
                    </div>
                </div>
                <div class="col-sm-8">
                    <div class="row">
                        <h5 class="borderBottom">Campos obrigatórios</h5>
                        <div class="form-group">
                            <label for="nomeTB">Nome</label>
                            <asp:TextBox ID="nomeTB" runat="server" class="form-control"></asp:TextBox>
                            <div class="has-error">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" CssClass="help-block"
                                    Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="nomeTB"></asp:RequiredFieldValidator>

                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label for="inputEmail">NIF</label>
                                    <asp:TextBox ID="nifTB" runat="server" class="form-control"></asp:TextBox>
                                    <div class="has-error">
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" CssClass="help-block"
                                            Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="nifTB"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label for="inputEmail">Segurança Social</label>
                                    <asp:TextBox ID="ssTB" runat="server" class="form-control"></asp:TextBox>
                                    <div class="has-error">
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" CssClass="help-block"
                                            Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="ssTB"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword">Morada</label>
                            <asp:TextBox ID="moradaTB" class="form-control" runat="server"></asp:TextBox>
                            <div class="has-error">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" Display="Dynamic" runat="server" CssClass="help-block"
                                    Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="moradaTB"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <h5 class="borderBottom">Campos opcionais</h5>
                        <div class="row">
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label for="inputPassword">Codigo Postal</label>
                                    <asp:TextBox ID="codigoPostalTB" class="form-control" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="col-sm-8">
                                <div class="form-group">
                                    <label for="inputEmail">Pais</label><br />
                                    <asp:DropDownList ID="paisesDL" runat="server" CssClass="form-control selectpicker" DataTextField="name" DataValueField="id"></asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label for="inputEmail">Telefone</label>
                                    <asp:TextBox ID="telefoneTB" runat="server" class="form-control"></asp:TextBox>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label for="inputEmail">Telemóvel</label>
                                    <asp:TextBox ID="telemovelTB" runat="server" class="form-control"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label for="inputEmail">Email Geral</label>
                                    <asp:TextBox ID="emailTB" runat="server" class="form-control"></asp:TextBox>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label for="inputEmail">FAX</label>
                                    <asp:TextBox ID="faxTB" runat="server" class="form-control"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputEmail">Ramo Actividade</label><br />
                            <asp:DropDownList ID="ramoDL" runat="server" CssClass="form-control selectpicker" DataTextField="ramo_actividade" DataValueField="id"></asp:DropDownList>
                        </div>
                        <div class="form-group">
                            <label for="inputEmail">Website</label><br />
                            <asp:TextBox ID="websiteTB" runat="server" CssClass="form-control"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label for="inputEmail">Descrição da empresa</label><br />
                            <asp:TextBox ID="sobreTB" runat="server" CssClass="form-control"></asp:TextBox>
                        </div>
                        <asp:LinkButton ID="LinkButton1" class="btn btn-primary" ValidationGroup="validaGroup" runat="server"
                            OnClick="LinkButton1_Click">Guardar</asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
